home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / mac / files / t_sys5 / unixcpio.gz / unixnet.cpio / st.h < prev    next >
C/C++ Source or Header  |  1994-07-11  |  823b  |  28 lines

  1. /* Various I/O definitions specific to the Atari ST */
  2.  
  3. /* Iorec structure as defined by Atari BIOS */
  4. struct iorec {
  5.     char *ibuf;        /* pointer to buffer */
  6.     int16 ibufsiz;        /* size of buffer */
  7.     int16 ibufhd;        /* head index */
  8.     int16 ibuftl;        /* tail index */
  9.     int16 ibuflow;        /* low-water mark */
  10.     int16 ibufhi;        /* high-water mark */
  11. };
  12.  
  13. /* Asynch controller control block */
  14. struct asy {
  15.     struct iorec *in,*out;    /* ptr to current iorecs */
  16.     struct iorec oldin,oldout; /* saved iorecs */
  17.     unsigned addr;        /* Base I/O address, 1 or 3 on the Atari */
  18.     unsigned vec;        /* Interrupt vector, used as route thru flag */
  19.     unsigned speed;     /* Line speed */
  20. };
  21.  
  22. extern struct asy asy[];
  23.  
  24. #define RS232    1        /* address of RS232 */
  25. #define MIDI    3        /* address of MIDI */
  26.  
  27. #define FLOW    1        /* flow control just like FLOW ON on a tnc-2 */
  28.